package com.creative.xcx.service;

import com.creative.xcx.domain.MaterialType;
import com.creative.core.page.TableDataInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description 素材分类类型
 * @author ling
 * @date 2025-02-26
 */
@Transactional(rollbackFor = Exception.class)
public interface MaterialTypeService {

    /**
     * 新增
     */
    public Integer insert(MaterialType materialType);

    /**
     * 删除
     */
    public Integer delete(String typeId);

    /**
     * 批量删除
     */

    public Integer deleteBatch(String[]   ids);


    /**
     * 更新
     */
    public Integer update(MaterialType materialType);

    /**
     * 根据主键 id 查询
     */
    public MaterialType selectById(String typeId);
    /**
     * 分页查询
     */
    public  TableDataInfo selectMaterialTypeList(MaterialType materialType);

    List<MaterialType> selectMpMaterialTypeList(MaterialType materialType);
    /**
     * 批量刪除
     * @author ling
     * @date 2025/02/26
     **/
    public List<MaterialType> exportBatch(String[]   ids);

    /**
     * 获取素材类型列表
     *
     * @return {@link List }<{@link MaterialType }>
     * @author ling
     * @date 2025/03/06
     */
    List<MaterialType> selectTypeList();

    /**
     * 统计素材分类数量
     *
     * @return {@link Long }
     * @author ling
     * @date 2025/04/28
     */
    Long calculateMaterialType();


}
